﻿<Window x:Class="Test.Window2" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:cc="clr-namespace:CustomControl;assembly=CustomControl"
        Title="Window2" Height="300" Width="300">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    
    <CheckBox Content="Enable CustomControl" IsChecked="{Binding ElementName=myControl, Path=IsEnabled}"/>
    
    <cc:CustomControl x:Name="myControl" Grid.Row="1" Icon="pack://application:,,,/Test;component/image.png"/>
  </Grid>
</Window>
